package entity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

@Entity("admin")
public class Admin {
    @Id
    private String _id;
    private String name;
    private String pwd;
    private String email;
    private String mobile;

    public Admin() {
    }

    public Admin(String id, String name, String pwd, String email, String mobile) {
        this._id = id;
        this.name = name;
        this.pwd = pwd;
        this.email = email;
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id='" + _id + '\'' +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                '}';
    }

    public String getId() {
        return _id;
    }

    public void setId(String id) {
        this._id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
